Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change if condition to provide e2e test functionality. #295

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

srijanreddy98
Copy link
Contributor

The current "hack" for testing codemirror in angular is using browser.executeScript with setValue. Link to stackoverflow: https://stackoverflow.com/questions/30552393/how-to-write-protractor-test-for-ui-codemirror-angularjs-directive.

However, this fails for ngx-codemirror because we are ignoring some setValue calls for fewer and more accurate change-detection calls. I have tried to achieve the same by using a different if condition to facilitate end to end testing.

@srijanreddy98
Copy link
Contributor Author

@scttcper PTAL

@scttcper scttcper merged commit cfb0f6f into scttcper:master Apr 27, 2021
@scttcper
Copy link
Owner

🎉 This PR is included in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants